<div ng-controller="GetPersonListCtrl">
<div class="panel panel-default">
 	<div class="panel-body" style="padding-top: 0;padding-bottom: 0;">
  		<div class="nav navbar-nav m-t">
 			            
            <span><b>系统设置</b></span>
            <i class="fa fa-angle-right" style="font-size:20px"></i>
            <span><b>人员管理</b> </span>
            <i class="fa fa-angle-right" style="font-size:20px"></i>
            <span><b>人员列表</b></span> 
         </div>
        <!-- nabar right -->
        <ul class="nav navbar-nav navbar-right" >          
          <li class="dropdown" dropdown>
            <a href class="dropdown-toggle clear" dropdown-toggle>
              <span class="thumb-sm avatar pull-right m-t-n-sm m-b-n-sm m-l-sm">
                <img src="img/a0.jpg" alt="...">
                <i class="on md b-white bottom"></i>
              </span>
              <span class="hidden-sm hidden-md"><b>{{namedata}}</b></span> <b class="caret"></b>
            </a>
            <!-- dropdown -->
            <ul class="dropdown-menu animated fadeInRight w">  
              <li>
                <a ui-sref="app.user.info">用户信息</a>
              </li>       
              <li class="divider"></li>
              <li>
                <a ui-sref="access.signin" ng-click="logout()">登出</a>
              </li>
            </ul>
            <!-- / dropdown -->
          </li>
        </ul>
 	</div>
</div>
<div class="panel panel-default m-t-n-md">
  <div class="panel-body">
    <div class="pull-right">
      <a class="btn btn-sm btn-rounded btn-info" ng-controller="NewPersonModalCtrl">
          <script type="text/ng-template" id="newpersonModalContent.html">
                   <div ng-include="'tpl/sys/person/newmodal.html'"></div>
              </script> 
              <span ng-click="open()">新增</span> 
          </a>
    </div>
    <table class="table" style="border: none;">
      <thead>
        <tr>
          <th>学校名称</th>
          <th>工号</th> 
          <th>姓名</th>
          <th>班级</th>   
         
          <th>类别</th>            
          <th>操作</th>         
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="aaData in aaData">
          <td>
            {{aaData.school_name}}
          </td>
          <td>
            {{aaData.personnel_number}}
          </td>
          <td>
            {{aaData.name}}
          </td>
          <td>
            {{aaData.class}}
          </td>   
          
          <td>
            {{aaData.type}}
          </td>             
          <td>
            <a class="btn btn-xs btn-info" ng-controller="EditPersonModalCtrl">
              <script type="text/ng-template" id="editpersonModalContent.html">
                 <div ng-include="'tpl/sys/person/editmodal.html'"></div>
              </script> 
              <span ng-click="editrole(aaData)">编辑</span>             
            </a>
            <a class="btn btn-xs btn-success" ui-sref="app.sys.roleauth({roleid:aaData.id,page:'{{currentPage}}'})">关联权限</a>

            <a class="btn btn-xs btn-danger" ng-controller="DelPersonModalCtrl">
              <script type="text/ng-template" id="delpersonModalContent.html">
                        <div ng-include="'tpl/sys/person/delmodal.html'"></div>
                    </script> 
                    <span ng-click="delperson(aaData.personnel_id)">删除</span> 
            </a>
          </td>
          
        </tr>
        
      </tbody>
    </table>
    <div class="text-center">
          <pagination boundary-links="true" total-items="totalItems"
          ng-model="currentPage" class="pagination-sm embed-responsive-item"
          previous-text="上一页"
          next-text="下一页"
          first-text="首页"
          last-text="尾页"
          max-size="maxSize"
          rotate="false" num-pages="numPages" ng-change="pageChanged()">
         </pagination>
      </div>  



    </div>
</div>
</div>

